home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
comms
/
p202.zip
/
ck_p.ini
next >
Wrap
Text File
|
1994-08-20
|
5KB
|
90 lines
echo Initializing support for P external file transfer protocols...
; Send via Zmodem
define sz, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "sz not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -device \v(line) -handle \v(ttyfd) -speed \v(speed) -mileage -commbufs 4096 -protocol zmodem -send \%1, end, -
:pipe, !p.exe -type pipe -device \v(line) -handle \v(ttyfd) -mileage -commbufs 8192 -filebuf 32768 -protocol zmodem -send \%1, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -mileage -commbufs 8192 -filebuf 32768 -protocol zmodem -send \%1, end
; Receive via Zmodem
define rz, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "rz not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -device \v(line) -handle \v(ttyfd) -speed \v(speed) -mileage -commbufs 4096 -protocol zmodem -receive, end, -
:pipe, !p.exe -type pipe -device \v(line) -handle \v(ttyfd) -mileage -commbufs 8192 -filebuf 32768 -protocol zmodem -receive, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -mileage -commbufs 8192 -filebuf 32768 -protocol zmodem -receive, end
; Send via Ymodem-g
define sg, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "sg not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -device \v(line) -handle \v(ttyfd) -speed \v(speed) -mileage -commbufs 4096 -protocol ymodem-g -kilo -send \%1, end, -
:pipe, !p.exe -type pipe -device \v(line) -handle \v(ttyfd) -mileage -commbufs 8192 -filebuf 32768 -protocol ymodem-g -kilo -send \%1, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -mileage -commbufs 8192 -filebuf 32768 -protocol ymodem-g -kilo -send \%1, end
; Receive via Ymodem-g
define rg, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "rg not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -device \v(line) -handle \v(ttyfd) -speed \v(speed) -mileage -commbufs 4096 -protocol ymodem-g -receive, end, -
:pipe, !p.exe -type pipe -device \v(line) -handle \v(ttyfd) -mileage -commbufs 8192 -filebuf 32768 -protocol ymodem-g -receive, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -mileage -commbufs 8192 -filebuf 32768 -protocol ymodem-g -receive, end
; Send via Ymodem
define sy, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "sy not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -device \v(line) -handle \v(ttyfd) -speed \v(speed) -mileage -protocol ymodem -kilo -send \%1, end, -
:pipe, !p.exe -type pipe -device \v(line) -handle \v(ttyfd) -mileage -filebuf 32768 -protocol ymodem -kilo -send \%1, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -mileage -filebuf 32768 -protocol ymodem -kilo -send \%1, end
; Receive via Ymodem
define ry, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "ry not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -device \v(line) -handle \v(ttyfd) -speed \v(speed) -mileage -protocol ymodem -receive, end, -
:pipe, !p.exe -type pipe -device \v(line) -handle \v(ttyfd) -mileage -filebuf 32768 -protocol ymodem -receive, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -mileage -filebuf 32768 -protocol ymodem -receive, end
; Send via Xmodem
define sx, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "sx not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -device \v(line) -handle \v(ttyfd) -speed \v(speed) -protocol xmodem -kilo -send \%1, end, -
:pipe, !p.exe -type pipe -device \v(line) -handle \v(ttyfd) -filebuf 32768 -protocol xmodem -kilo -send \%1, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -filebuf 32768 -protocol xmodem -kilo -send \%1, end
; Receive via Xmodem
define rx, -
if equal "\v(connection)" "serial" goto async, -
if equal "\v(connection)" "named_pipe" goto pipe, -
if equal "\v(connection)" "tcp/ip_telnet" goto socket, -
echo "rx not supported on \v(connection) connections.",-
end, -
:async, !p.exe -type async -device \v(line) -handle \v(ttyfd) -speed \v(speed) -protocol xmodem -receive \%1, end, -
:pipe, !p.exe -type pipe -device \v(line) -handle \v(ttyfd) -filebuf 32768 -protocol xmodem -receive \%1, end, -
:socket, !p.exe -type socket -handle \v(ttyfd) -telnet -filebuf 32768 -protocol xmodem -receive \%1, end